const fs = require('fs');
const KEY_COUNT = 100;
const KEY_LEN = 100;
const CHARS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<>?,./;[]{}!@#$%^&*()_+';

// 存储keys的数组
let arr = [];

for (let i = 0; i < KEY_COUNT; i++) {
    let key = '';
    for (let j = 0; j < KEY_LEN; j++) {
        key += CHARS[Math.floor(Math.random() * CHARS.length)];
    }
    arr.push(key);
}
fs.writeFileSync('.keys', arr.join('\n'));
console.log(`已经生成${KEY_COUNT}个keys.`);